﻿/* DotNetHoldem 
 * .Net Solution that allows to use OpenHoldem with .Net logic
 * Author: Óscar Andreu
 * oesido at gmail dot com
 * Licensed under GPLv3 - 2012
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace DotNetBotLogic.Classes
{
    [StructLayout(LayoutKind.Sequential)]
    public struct holdem_player
    {
        public string m_name;
        public double m_balance;
        public double m_currentbet;
        public byte[] m_cards;
        public byte m_name_known;
        public byte m_balance_known;
        public byte m_fillerbits;
        public byte m_fillerbyte;
    }

    /*
     struct holdem_player {
    char            m_name[16]          ;	//player name if known
    double          m_balance           ;	//player balance 
    double          m_currentbet        ;	//player current bet
    unsigned char   m_cards[2]          ;	//player cards

    unsigned char   m_name_known    : 1 ;	//0=no 1=yes
    unsigned char   m_balance_known : 1 ;	//0=no 1=yes
    unsigned char   m_fillerbits    : 6 ;	//filler bits
    unsigned char   m_fillerbyte        ;	//filler bytes
    };
      
      
     http://www.codeproject.com/Articles/9714/Win32-API-C-to-NET
    */
}
